﻿using Furion.CMS.Domain;
using Mapster;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 权限配置数据传输对象
    /// </summary>
    public class PermissionConfigDto
    {
        public PermissionConfigDto()
        {
            PageFunctions = new List<PermissionDto>();
            ParentPaths = new string[0];
        }

        /// <summary>
        /// 权限菜单Code
        /// </summary>
        public virtual string Code { get; set; }
        /// <summary>
        /// 权限菜单名称
        /// </summary>
        public virtual string Name { get; set; }
        /// <summary>
        /// 父级权限路径
        /// </summary>
        public virtual string[] ParentPaths { get; set; }
        /// <summary>
        /// 页面功能集合
        /// </summary>
        public virtual List<PermissionDto> PageFunctions { get; set; }
    }
}
